<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Models\Site;
class HomeController extends Controller
{
    //
    public function entry(){

        //通过模块module寻找对应module的 homeController

        $class="Modules\\".module()['name'].'\Http\Controllers\Front\HomeController';
        //app类似于make实例化类并调用index方法
        return app($class)->index();

    }
}
